package com.zryc.shop.oms.controller;

import com.zryc.shop.base.Result;
import com.zryc.shop.oms.service.ICompanyAddressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 公司收发货地址表 前端控制器
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-18
 */
@RestController
@Api("公司收发货地址表")
@RequestMapping("/oms/companyAddress")
public class CompanyAddressController {

    @Autowired
    private ICompanyAddressService companyAddressService;

    @GetMapping("/list")
    @ApiOperation("返回退货收货点地址列表")
    public Result list(){
        return Result.ok(companyAddressService.list());
    }
}
